package com.have.blog.base.vo;

import com.have.blog.base.validator.Messages;
import com.have.blog.base.validator.annotation.IntegerNotNull;
import com.have.blog.base.validator.group.GetList;
import lombok.Data;

/**
 * 分页信息
 * @param <T>
 */
@Data
public class PageInfo<T> {
    private String keyword;

    @IntegerNotNull(groups = {GetList.class}, message = Messages.PAGE_NOT_NULL)
    private Integer currentPage;

    @IntegerNotNull(groups = {GetList.class}, message = Messages.SIZE_NOT_NULL)
    private Integer pageSize;
}
